import axios from '@/libs/api.request'

export const fetchUserSetting = params => {
  return axios.request({
    url: '/api/user/getParam',
    method: 'get',
    params
  })
}

export const fetchCityList = params => {
  return axios.request({
    url: '/api/user/getRegionTree',
    method: 'get',
    params
  })
}

export const fetchSaveUserParams = data => {
  return axios.request({
    url: '/api/user/addParam',
    method: 'post',
    data
  })
}
